package org.tp8.sampleapp.enums;

/**
 * The Enum CRUDAction.
 */
public enum CRUDAction {

	/** The insert. */
	INSERT(1), /** The update. */
	UPDATE(2), /** The delete. */
	DELETE(3);

	/** The code. */
	private int code;

	/**
	 * Instantiates a new CRUD action.
	 * 
	 * @param c
	 *            the c
	 */
	private CRUDAction(int c) {
		code = c;
	}

	/**
	 * Gets the code.
	 * 
	 * @return the code
	 */
	public int getCode() {
		return code;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Enum#toString()
	 */
	public String toString() {
		return super.toString();
	}

}
